var mysql  = require('mysql')
var connection = mysql.createConnection({
	host: 'localhost',
	user: 'root',
	password: 'wang525184',
	database: 'test',
	port: '3306'
})
connection.connect(function error(error) {
	if(error) {
		console.log(error)
		return
	}
	console.log('数据库连接成功')
})